<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
//前台路由
	
	Route::rule('cate/:id','index/index/index','get');
	Route::rule('/','index/index/index','get');
	Route::rule('article-<id>','index/article/info','get');


//后台路由
Route::group('admin',function(){
	Route::rule('/','admin/index/login','get|post');

	Route::rule('register','admin/index/register','get|post');
	Route::rule('forget','admin/index/forget','get|post');
	Route::rule('reset','admin/index/reset','get|post');
	Route::rule('index','admin/home/index','get');
	Route::rule('loginout','admin/home/loginout','get|post');
	
	Route::rule('catelist','admin/cate/list_l','get');
	Route::rule('cateadd','admin/cate/add','get|post');
	Route::rule('catesort','admin/cate/sort','post');
	Route::rule('cateedit/[:id]','admin/cate/edit','get|post');
	Route::rule('catedel','admin/cate/del','post');

	Route::rule('articleadd','admin/article/add','get|post');
	Route::rule('articlelist','admin/article/list_l','get|post');
	Route::rule('articletop','admin/article/top','post');
	Route::rule('articledel','admin/article/del','post');
	Route::rule('articleedit/[:id]','admin/article/edit','get|post');

	Route::rule('memberlist','admin/member/list_l','get');
	Route::rule('memberadd','admin/member/add','get|post');
	Route::rule('memberedit/[:id]','admin/member/edit','get|post');
	Route::rule('memberedel','admin/member/del','post');

	Route::rule('adminlist','admin/admin/list_l','get|post');
	Route::rule('adminedit/[:id]','admin/admin/edit','get|post');
	Route::rule('admindel','admin/admin/del','post');
	Route::rule('adminadd','admin/admin/add','get|post');

	Route::rule('content','admin/content/list_l','get|post');
	Route::rule('contentdel','admin/content/del','post');
	

	Route::rule('system','admin/system/set','get|post');
	Route::rule('systemedit','admin/system/edit','post');


});